import request from '@/utils/request'
import { IApi } from './types'

const api: IApi = {
  rights: '/rights/',
  menus: '/menus',
}


export function rights(type: string) {
  return request({
    url: api.rights + type,
    method: 'get',
  })
}

export function menus() {
  return request({
    url: api.menus,
    method: 'get',
  })
}
